package com.attendance.www.hr.entitys;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class MainOrganizationsExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public MainOrganizationsExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andOrganCodeIsNull() {
            addCriterion("organ_code is null");
            return (Criteria) this;
        }

        public Criteria andOrganCodeIsNotNull() {
            addCriterion("organ_code is not null");
            return (Criteria) this;
        }

        public Criteria andOrganCodeEqualTo(String value) {
            addCriterion("organ_code =", value, "organCode");
            return (Criteria) this;
        }

        public Criteria andOrganCodeNotEqualTo(String value) {
            addCriterion("organ_code <>", value, "organCode");
            return (Criteria) this;
        }

        public Criteria andOrganCodeGreaterThan(String value) {
            addCriterion("organ_code >", value, "organCode");
            return (Criteria) this;
        }

        public Criteria andOrganCodeGreaterThanOrEqualTo(String value) {
            addCriterion("organ_code >=", value, "organCode");
            return (Criteria) this;
        }

        public Criteria andOrganCodeLessThan(String value) {
            addCriterion("organ_code <", value, "organCode");
            return (Criteria) this;
        }

        public Criteria andOrganCodeLessThanOrEqualTo(String value) {
            addCriterion("organ_code <=", value, "organCode");
            return (Criteria) this;
        }

        public Criteria andOrganCodeLike(String value) {
            addCriterion("organ_code like", value, "organCode");
            return (Criteria) this;
        }

        public Criteria andOrganCodeNotLike(String value) {
            addCriterion("organ_code not like", value, "organCode");
            return (Criteria) this;
        }

        public Criteria andOrganCodeIn(List<String> values) {
            addCriterion("organ_code in", values, "organCode");
            return (Criteria) this;
        }

        public Criteria andOrganCodeNotIn(List<String> values) {
            addCriterion("organ_code not in", values, "organCode");
            return (Criteria) this;
        }

        public Criteria andOrganCodeBetween(String value1, String value2) {
            addCriterion("organ_code between", value1, value2, "organCode");
            return (Criteria) this;
        }

        public Criteria andOrganCodeNotBetween(String value1, String value2) {
            addCriterion("organ_code not between", value1, value2, "organCode");
            return (Criteria) this;
        }

        public Criteria andOrganNameIsNull() {
            addCriterion("organ_name is null");
            return (Criteria) this;
        }

        public Criteria andOrganNameIsNotNull() {
            addCriterion("organ_name is not null");
            return (Criteria) this;
        }

        public Criteria andOrganNameEqualTo(String value) {
            addCriterion("organ_name =", value, "organName");
            return (Criteria) this;
        }

        public Criteria andOrganNameNotEqualTo(String value) {
            addCriterion("organ_name <>", value, "organName");
            return (Criteria) this;
        }

        public Criteria andOrganNameGreaterThan(String value) {
            addCriterion("organ_name >", value, "organName");
            return (Criteria) this;
        }

        public Criteria andOrganNameGreaterThanOrEqualTo(String value) {
            addCriterion("organ_name >=", value, "organName");
            return (Criteria) this;
        }

        public Criteria andOrganNameLessThan(String value) {
            addCriterion("organ_name <", value, "organName");
            return (Criteria) this;
        }

        public Criteria andOrganNameLessThanOrEqualTo(String value) {
            addCriterion("organ_name <=", value, "organName");
            return (Criteria) this;
        }

        public Criteria andOrganNameLike(String value) {
            addCriterion("organ_name like", value, "organName");
            return (Criteria) this;
        }

        public Criteria andOrganNameNotLike(String value) {
            addCriterion("organ_name not like", value, "organName");
            return (Criteria) this;
        }

        public Criteria andOrganNameIn(List<String> values) {
            addCriterion("organ_name in", values, "organName");
            return (Criteria) this;
        }

        public Criteria andOrganNameNotIn(List<String> values) {
            addCriterion("organ_name not in", values, "organName");
            return (Criteria) this;
        }

        public Criteria andOrganNameBetween(String value1, String value2) {
            addCriterion("organ_name between", value1, value2, "organName");
            return (Criteria) this;
        }

        public Criteria andOrganNameNotBetween(String value1, String value2) {
            addCriterion("organ_name not between", value1, value2, "organName");
            return (Criteria) this;
        }

        public Criteria andOrganFullNameIsNull() {
            addCriterion("organ_full_name is null");
            return (Criteria) this;
        }

        public Criteria andOrganFullNameIsNotNull() {
            addCriterion("organ_full_name is not null");
            return (Criteria) this;
        }

        public Criteria andOrganFullNameEqualTo(String value) {
            addCriterion("organ_full_name =", value, "organFullName");
            return (Criteria) this;
        }

        public Criteria andOrganFullNameNotEqualTo(String value) {
            addCriterion("organ_full_name <>", value, "organFullName");
            return (Criteria) this;
        }

        public Criteria andOrganFullNameGreaterThan(String value) {
            addCriterion("organ_full_name >", value, "organFullName");
            return (Criteria) this;
        }

        public Criteria andOrganFullNameGreaterThanOrEqualTo(String value) {
            addCriterion("organ_full_name >=", value, "organFullName");
            return (Criteria) this;
        }

        public Criteria andOrganFullNameLessThan(String value) {
            addCriterion("organ_full_name <", value, "organFullName");
            return (Criteria) this;
        }

        public Criteria andOrganFullNameLessThanOrEqualTo(String value) {
            addCriterion("organ_full_name <=", value, "organFullName");
            return (Criteria) this;
        }

        public Criteria andOrganFullNameLike(String value) {
            addCriterion("organ_full_name like", value, "organFullName");
            return (Criteria) this;
        }

        public Criteria andOrganFullNameNotLike(String value) {
            addCriterion("organ_full_name not like", value, "organFullName");
            return (Criteria) this;
        }

        public Criteria andOrganFullNameIn(List<String> values) {
            addCriterion("organ_full_name in", values, "organFullName");
            return (Criteria) this;
        }

        public Criteria andOrganFullNameNotIn(List<String> values) {
            addCriterion("organ_full_name not in", values, "organFullName");
            return (Criteria) this;
        }

        public Criteria andOrganFullNameBetween(String value1, String value2) {
            addCriterion("organ_full_name between", value1, value2, "organFullName");
            return (Criteria) this;
        }

        public Criteria andOrganFullNameNotBetween(String value1, String value2) {
            addCriterion("organ_full_name not between", value1, value2, "organFullName");
            return (Criteria) this;
        }

        public Criteria andOrganTypeIsNull() {
            addCriterion("organ_type is null");
            return (Criteria) this;
        }

        public Criteria andOrganTypeIsNotNull() {
            addCriterion("organ_type is not null");
            return (Criteria) this;
        }

        public Criteria andOrganTypeEqualTo(String value) {
            addCriterion("organ_type =", value, "organType");
            return (Criteria) this;
        }

        public Criteria andOrganTypeNotEqualTo(String value) {
            addCriterion("organ_type <>", value, "organType");
            return (Criteria) this;
        }

        public Criteria andOrganTypeGreaterThan(String value) {
            addCriterion("organ_type >", value, "organType");
            return (Criteria) this;
        }

        public Criteria andOrganTypeGreaterThanOrEqualTo(String value) {
            addCriterion("organ_type >=", value, "organType");
            return (Criteria) this;
        }

        public Criteria andOrganTypeLessThan(String value) {
            addCriterion("organ_type <", value, "organType");
            return (Criteria) this;
        }

        public Criteria andOrganTypeLessThanOrEqualTo(String value) {
            addCriterion("organ_type <=", value, "organType");
            return (Criteria) this;
        }

        public Criteria andOrganTypeLike(String value) {
            addCriterion("organ_type like", value, "organType");
            return (Criteria) this;
        }

        public Criteria andOrganTypeNotLike(String value) {
            addCriterion("organ_type not like", value, "organType");
            return (Criteria) this;
        }

        public Criteria andOrganTypeIn(List<String> values) {
            addCriterion("organ_type in", values, "organType");
            return (Criteria) this;
        }

        public Criteria andOrganTypeNotIn(List<String> values) {
            addCriterion("organ_type not in", values, "organType");
            return (Criteria) this;
        }

        public Criteria andOrganTypeBetween(String value1, String value2) {
            addCriterion("organ_type between", value1, value2, "organType");
            return (Criteria) this;
        }

        public Criteria andOrganTypeNotBetween(String value1, String value2) {
            addCriterion("organ_type not between", value1, value2, "organType");
            return (Criteria) this;
        }

        public Criteria andSuperiorCodeIsNull() {
            addCriterion("superior_code is null");
            return (Criteria) this;
        }

        public Criteria andSuperiorCodeIsNotNull() {
            addCriterion("superior_code is not null");
            return (Criteria) this;
        }

        public Criteria andSuperiorCodeEqualTo(String value) {
            addCriterion("superior_code =", value, "superiorCode");
            return (Criteria) this;
        }

        public Criteria andSuperiorCodeNotEqualTo(String value) {
            addCriterion("superior_code <>", value, "superiorCode");
            return (Criteria) this;
        }

        public Criteria andSuperiorCodeGreaterThan(String value) {
            addCriterion("superior_code >", value, "superiorCode");
            return (Criteria) this;
        }

        public Criteria andSuperiorCodeGreaterThanOrEqualTo(String value) {
            addCriterion("superior_code >=", value, "superiorCode");
            return (Criteria) this;
        }

        public Criteria andSuperiorCodeLessThan(String value) {
            addCriterion("superior_code <", value, "superiorCode");
            return (Criteria) this;
        }

        public Criteria andSuperiorCodeLessThanOrEqualTo(String value) {
            addCriterion("superior_code <=", value, "superiorCode");
            return (Criteria) this;
        }

        public Criteria andSuperiorCodeLike(String value) {
            addCriterion("superior_code like", value, "superiorCode");
            return (Criteria) this;
        }

        public Criteria andSuperiorCodeNotLike(String value) {
            addCriterion("superior_code not like", value, "superiorCode");
            return (Criteria) this;
        }

        public Criteria andSuperiorCodeIn(List<String> values) {
            addCriterion("superior_code in", values, "superiorCode");
            return (Criteria) this;
        }

        public Criteria andSuperiorCodeNotIn(List<String> values) {
            addCriterion("superior_code not in", values, "superiorCode");
            return (Criteria) this;
        }

        public Criteria andSuperiorCodeBetween(String value1, String value2) {
            addCriterion("superior_code between", value1, value2, "superiorCode");
            return (Criteria) this;
        }

        public Criteria andSuperiorCodeNotBetween(String value1, String value2) {
            addCriterion("superior_code not between", value1, value2, "superiorCode");
            return (Criteria) this;
        }

        public Criteria andSuperiorNameIsNull() {
            addCriterion("superior_name is null");
            return (Criteria) this;
        }

        public Criteria andSuperiorNameIsNotNull() {
            addCriterion("superior_name is not null");
            return (Criteria) this;
        }

        public Criteria andSuperiorNameEqualTo(String value) {
            addCriterion("superior_name =", value, "superiorName");
            return (Criteria) this;
        }

        public Criteria andSuperiorNameNotEqualTo(String value) {
            addCriterion("superior_name <>", value, "superiorName");
            return (Criteria) this;
        }

        public Criteria andSuperiorNameGreaterThan(String value) {
            addCriterion("superior_name >", value, "superiorName");
            return (Criteria) this;
        }

        public Criteria andSuperiorNameGreaterThanOrEqualTo(String value) {
            addCriterion("superior_name >=", value, "superiorName");
            return (Criteria) this;
        }

        public Criteria andSuperiorNameLessThan(String value) {
            addCriterion("superior_name <", value, "superiorName");
            return (Criteria) this;
        }

        public Criteria andSuperiorNameLessThanOrEqualTo(String value) {
            addCriterion("superior_name <=", value, "superiorName");
            return (Criteria) this;
        }

        public Criteria andSuperiorNameLike(String value) {
            addCriterion("superior_name like", value, "superiorName");
            return (Criteria) this;
        }

        public Criteria andSuperiorNameNotLike(String value) {
            addCriterion("superior_name not like", value, "superiorName");
            return (Criteria) this;
        }

        public Criteria andSuperiorNameIn(List<String> values) {
            addCriterion("superior_name in", values, "superiorName");
            return (Criteria) this;
        }

        public Criteria andSuperiorNameNotIn(List<String> values) {
            addCriterion("superior_name not in", values, "superiorName");
            return (Criteria) this;
        }

        public Criteria andSuperiorNameBetween(String value1, String value2) {
            addCriterion("superior_name between", value1, value2, "superiorName");
            return (Criteria) this;
        }

        public Criteria andSuperiorNameNotBetween(String value1, String value2) {
            addCriterion("superior_name not between", value1, value2, "superiorName");
            return (Criteria) this;
        }

        public Criteria andCompanyTypeIsNull() {
            addCriterion("company_type is null");
            return (Criteria) this;
        }

        public Criteria andCompanyTypeIsNotNull() {
            addCriterion("company_type is not null");
            return (Criteria) this;
        }

        public Criteria andCompanyTypeEqualTo(String value) {
            addCriterion("company_type =", value, "companyType");
            return (Criteria) this;
        }

        public Criteria andCompanyTypeNotEqualTo(String value) {
            addCriterion("company_type <>", value, "companyType");
            return (Criteria) this;
        }

        public Criteria andCompanyTypeGreaterThan(String value) {
            addCriterion("company_type >", value, "companyType");
            return (Criteria) this;
        }

        public Criteria andCompanyTypeGreaterThanOrEqualTo(String value) {
            addCriterion("company_type >=", value, "companyType");
            return (Criteria) this;
        }

        public Criteria andCompanyTypeLessThan(String value) {
            addCriterion("company_type <", value, "companyType");
            return (Criteria) this;
        }

        public Criteria andCompanyTypeLessThanOrEqualTo(String value) {
            addCriterion("company_type <=", value, "companyType");
            return (Criteria) this;
        }

        public Criteria andCompanyTypeLike(String value) {
            addCriterion("company_type like", value, "companyType");
            return (Criteria) this;
        }

        public Criteria andCompanyTypeNotLike(String value) {
            addCriterion("company_type not like", value, "companyType");
            return (Criteria) this;
        }

        public Criteria andCompanyTypeIn(List<String> values) {
            addCriterion("company_type in", values, "companyType");
            return (Criteria) this;
        }

        public Criteria andCompanyTypeNotIn(List<String> values) {
            addCriterion("company_type not in", values, "companyType");
            return (Criteria) this;
        }

        public Criteria andCompanyTypeBetween(String value1, String value2) {
            addCriterion("company_type between", value1, value2, "companyType");
            return (Criteria) this;
        }

        public Criteria andCompanyTypeNotBetween(String value1, String value2) {
            addCriterion("company_type not between", value1, value2, "companyType");
            return (Criteria) this;
        }

        public Criteria andIndustryIsNull() {
            addCriterion("industry is null");
            return (Criteria) this;
        }

        public Criteria andIndustryIsNotNull() {
            addCriterion("industry is not null");
            return (Criteria) this;
        }

        public Criteria andIndustryEqualTo(String value) {
            addCriterion("industry =", value, "industry");
            return (Criteria) this;
        }

        public Criteria andIndustryNotEqualTo(String value) {
            addCriterion("industry <>", value, "industry");
            return (Criteria) this;
        }

        public Criteria andIndustryGreaterThan(String value) {
            addCriterion("industry >", value, "industry");
            return (Criteria) this;
        }

        public Criteria andIndustryGreaterThanOrEqualTo(String value) {
            addCriterion("industry >=", value, "industry");
            return (Criteria) this;
        }

        public Criteria andIndustryLessThan(String value) {
            addCriterion("industry <", value, "industry");
            return (Criteria) this;
        }

        public Criteria andIndustryLessThanOrEqualTo(String value) {
            addCriterion("industry <=", value, "industry");
            return (Criteria) this;
        }

        public Criteria andIndustryLike(String value) {
            addCriterion("industry like", value, "industry");
            return (Criteria) this;
        }

        public Criteria andIndustryNotLike(String value) {
            addCriterion("industry not like", value, "industry");
            return (Criteria) this;
        }

        public Criteria andIndustryIn(List<String> values) {
            addCriterion("industry in", values, "industry");
            return (Criteria) this;
        }

        public Criteria andIndustryNotIn(List<String> values) {
            addCriterion("industry not in", values, "industry");
            return (Criteria) this;
        }

        public Criteria andIndustryBetween(String value1, String value2) {
            addCriterion("industry between", value1, value2, "industry");
            return (Criteria) this;
        }

        public Criteria andIndustryNotBetween(String value1, String value2) {
            addCriterion("industry not between", value1, value2, "industry");
            return (Criteria) this;
        }

        public Criteria andSubRelationsIsNull() {
            addCriterion("sub_relations is null");
            return (Criteria) this;
        }

        public Criteria andSubRelationsIsNotNull() {
            addCriterion("sub_relations is not null");
            return (Criteria) this;
        }

        public Criteria andSubRelationsEqualTo(String value) {
            addCriterion("sub_relations =", value, "subRelations");
            return (Criteria) this;
        }

        public Criteria andSubRelationsNotEqualTo(String value) {
            addCriterion("sub_relations <>", value, "subRelations");
            return (Criteria) this;
        }

        public Criteria andSubRelationsGreaterThan(String value) {
            addCriterion("sub_relations >", value, "subRelations");
            return (Criteria) this;
        }

        public Criteria andSubRelationsGreaterThanOrEqualTo(String value) {
            addCriterion("sub_relations >=", value, "subRelations");
            return (Criteria) this;
        }

        public Criteria andSubRelationsLessThan(String value) {
            addCriterion("sub_relations <", value, "subRelations");
            return (Criteria) this;
        }

        public Criteria andSubRelationsLessThanOrEqualTo(String value) {
            addCriterion("sub_relations <=", value, "subRelations");
            return (Criteria) this;
        }

        public Criteria andSubRelationsLike(String value) {
            addCriterion("sub_relations like", value, "subRelations");
            return (Criteria) this;
        }

        public Criteria andSubRelationsNotLike(String value) {
            addCriterion("sub_relations not like", value, "subRelations");
            return (Criteria) this;
        }

        public Criteria andSubRelationsIn(List<String> values) {
            addCriterion("sub_relations in", values, "subRelations");
            return (Criteria) this;
        }

        public Criteria andSubRelationsNotIn(List<String> values) {
            addCriterion("sub_relations not in", values, "subRelations");
            return (Criteria) this;
        }

        public Criteria andSubRelationsBetween(String value1, String value2) {
            addCriterion("sub_relations between", value1, value2, "subRelations");
            return (Criteria) this;
        }

        public Criteria andSubRelationsNotBetween(String value1, String value2) {
            addCriterion("sub_relations not between", value1, value2, "subRelations");
            return (Criteria) this;
        }

        public Criteria andUnitNatureIsNull() {
            addCriterion("unit_nature is null");
            return (Criteria) this;
        }

        public Criteria andUnitNatureIsNotNull() {
            addCriterion("unit_nature is not null");
            return (Criteria) this;
        }

        public Criteria andUnitNatureEqualTo(String value) {
            addCriterion("unit_nature =", value, "unitNature");
            return (Criteria) this;
        }

        public Criteria andUnitNatureNotEqualTo(String value) {
            addCriterion("unit_nature <>", value, "unitNature");
            return (Criteria) this;
        }

        public Criteria andUnitNatureGreaterThan(String value) {
            addCriterion("unit_nature >", value, "unitNature");
            return (Criteria) this;
        }

        public Criteria andUnitNatureGreaterThanOrEqualTo(String value) {
            addCriterion("unit_nature >=", value, "unitNature");
            return (Criteria) this;
        }

        public Criteria andUnitNatureLessThan(String value) {
            addCriterion("unit_nature <", value, "unitNature");
            return (Criteria) this;
        }

        public Criteria andUnitNatureLessThanOrEqualTo(String value) {
            addCriterion("unit_nature <=", value, "unitNature");
            return (Criteria) this;
        }

        public Criteria andUnitNatureLike(String value) {
            addCriterion("unit_nature like", value, "unitNature");
            return (Criteria) this;
        }

        public Criteria andUnitNatureNotLike(String value) {
            addCriterion("unit_nature not like", value, "unitNature");
            return (Criteria) this;
        }

        public Criteria andUnitNatureIn(List<String> values) {
            addCriterion("unit_nature in", values, "unitNature");
            return (Criteria) this;
        }

        public Criteria andUnitNatureNotIn(List<String> values) {
            addCriterion("unit_nature not in", values, "unitNature");
            return (Criteria) this;
        }

        public Criteria andUnitNatureBetween(String value1, String value2) {
            addCriterion("unit_nature between", value1, value2, "unitNature");
            return (Criteria) this;
        }

        public Criteria andUnitNatureNotBetween(String value1, String value2) {
            addCriterion("unit_nature not between", value1, value2, "unitNature");
            return (Criteria) this;
        }

        public Criteria andEconomicTypeIsNull() {
            addCriterion("economic_type is null");
            return (Criteria) this;
        }

        public Criteria andEconomicTypeIsNotNull() {
            addCriterion("economic_type is not null");
            return (Criteria) this;
        }

        public Criteria andEconomicTypeEqualTo(String value) {
            addCriterion("economic_type =", value, "economicType");
            return (Criteria) this;
        }

        public Criteria andEconomicTypeNotEqualTo(String value) {
            addCriterion("economic_type <>", value, "economicType");
            return (Criteria) this;
        }

        public Criteria andEconomicTypeGreaterThan(String value) {
            addCriterion("economic_type >", value, "economicType");
            return (Criteria) this;
        }

        public Criteria andEconomicTypeGreaterThanOrEqualTo(String value) {
            addCriterion("economic_type >=", value, "economicType");
            return (Criteria) this;
        }

        public Criteria andEconomicTypeLessThan(String value) {
            addCriterion("economic_type <", value, "economicType");
            return (Criteria) this;
        }

        public Criteria andEconomicTypeLessThanOrEqualTo(String value) {
            addCriterion("economic_type <=", value, "economicType");
            return (Criteria) this;
        }

        public Criteria andEconomicTypeLike(String value) {
            addCriterion("economic_type like", value, "economicType");
            return (Criteria) this;
        }

        public Criteria andEconomicTypeNotLike(String value) {
            addCriterion("economic_type not like", value, "economicType");
            return (Criteria) this;
        }

        public Criteria andEconomicTypeIn(List<String> values) {
            addCriterion("economic_type in", values, "economicType");
            return (Criteria) this;
        }

        public Criteria andEconomicTypeNotIn(List<String> values) {
            addCriterion("economic_type not in", values, "economicType");
            return (Criteria) this;
        }

        public Criteria andEconomicTypeBetween(String value1, String value2) {
            addCriterion("economic_type between", value1, value2, "economicType");
            return (Criteria) this;
        }

        public Criteria andEconomicTypeNotBetween(String value1, String value2) {
            addCriterion("economic_type not between", value1, value2, "economicType");
            return (Criteria) this;
        }

        public Criteria andBusinessLicenseIsNull() {
            addCriterion("business_license is null");
            return (Criteria) this;
        }

        public Criteria andBusinessLicenseIsNotNull() {
            addCriterion("business_license is not null");
            return (Criteria) this;
        }

        public Criteria andBusinessLicenseEqualTo(String value) {
            addCriterion("business_license =", value, "businessLicense");
            return (Criteria) this;
        }

        public Criteria andBusinessLicenseNotEqualTo(String value) {
            addCriterion("business_license <>", value, "businessLicense");
            return (Criteria) this;
        }

        public Criteria andBusinessLicenseGreaterThan(String value) {
            addCriterion("business_license >", value, "businessLicense");
            return (Criteria) this;
        }

        public Criteria andBusinessLicenseGreaterThanOrEqualTo(String value) {
            addCriterion("business_license >=", value, "businessLicense");
            return (Criteria) this;
        }

        public Criteria andBusinessLicenseLessThan(String value) {
            addCriterion("business_license <", value, "businessLicense");
            return (Criteria) this;
        }

        public Criteria andBusinessLicenseLessThanOrEqualTo(String value) {
            addCriterion("business_license <=", value, "businessLicense");
            return (Criteria) this;
        }

        public Criteria andBusinessLicenseLike(String value) {
            addCriterion("business_license like", value, "businessLicense");
            return (Criteria) this;
        }

        public Criteria andBusinessLicenseNotLike(String value) {
            addCriterion("business_license not like", value, "businessLicense");
            return (Criteria) this;
        }

        public Criteria andBusinessLicenseIn(List<String> values) {
            addCriterion("business_license in", values, "businessLicense");
            return (Criteria) this;
        }

        public Criteria andBusinessLicenseNotIn(List<String> values) {
            addCriterion("business_license not in", values, "businessLicense");
            return (Criteria) this;
        }

        public Criteria andBusinessLicenseBetween(String value1, String value2) {
            addCriterion("business_license between", value1, value2, "businessLicense");
            return (Criteria) this;
        }

        public Criteria andBusinessLicenseNotBetween(String value1, String value2) {
            addCriterion("business_license not between", value1, value2, "businessLicense");
            return (Criteria) this;
        }

        public Criteria andOrgaLicenseIsNull() {
            addCriterion("orga_license is null");
            return (Criteria) this;
        }

        public Criteria andOrgaLicenseIsNotNull() {
            addCriterion("orga_license is not null");
            return (Criteria) this;
        }

        public Criteria andOrgaLicenseEqualTo(String value) {
            addCriterion("orga_license =", value, "orgaLicense");
            return (Criteria) this;
        }

        public Criteria andOrgaLicenseNotEqualTo(String value) {
            addCriterion("orga_license <>", value, "orgaLicense");
            return (Criteria) this;
        }

        public Criteria andOrgaLicenseGreaterThan(String value) {
            addCriterion("orga_license >", value, "orgaLicense");
            return (Criteria) this;
        }

        public Criteria andOrgaLicenseGreaterThanOrEqualTo(String value) {
            addCriterion("orga_license >=", value, "orgaLicense");
            return (Criteria) this;
        }

        public Criteria andOrgaLicenseLessThan(String value) {
            addCriterion("orga_license <", value, "orgaLicense");
            return (Criteria) this;
        }

        public Criteria andOrgaLicenseLessThanOrEqualTo(String value) {
            addCriterion("orga_license <=", value, "orgaLicense");
            return (Criteria) this;
        }

        public Criteria andOrgaLicenseLike(String value) {
            addCriterion("orga_license like", value, "orgaLicense");
            return (Criteria) this;
        }

        public Criteria andOrgaLicenseNotLike(String value) {
            addCriterion("orga_license not like", value, "orgaLicense");
            return (Criteria) this;
        }

        public Criteria andOrgaLicenseIn(List<String> values) {
            addCriterion("orga_license in", values, "orgaLicense");
            return (Criteria) this;
        }

        public Criteria andOrgaLicenseNotIn(List<String> values) {
            addCriterion("orga_license not in", values, "orgaLicense");
            return (Criteria) this;
        }

        public Criteria andOrgaLicenseBetween(String value1, String value2) {
            addCriterion("orga_license between", value1, value2, "orgaLicense");
            return (Criteria) this;
        }

        public Criteria andOrgaLicenseNotBetween(String value1, String value2) {
            addCriterion("orga_license not between", value1, value2, "orgaLicense");
            return (Criteria) this;
        }

        public Criteria andUnitPhoneNumIsNull() {
            addCriterion("unit_phone_num is null");
            return (Criteria) this;
        }

        public Criteria andUnitPhoneNumIsNotNull() {
            addCriterion("unit_phone_num is not null");
            return (Criteria) this;
        }

        public Criteria andUnitPhoneNumEqualTo(String value) {
            addCriterion("unit_phone_num =", value, "unitPhoneNum");
            return (Criteria) this;
        }

        public Criteria andUnitPhoneNumNotEqualTo(String value) {
            addCriterion("unit_phone_num <>", value, "unitPhoneNum");
            return (Criteria) this;
        }

        public Criteria andUnitPhoneNumGreaterThan(String value) {
            addCriterion("unit_phone_num >", value, "unitPhoneNum");
            return (Criteria) this;
        }

        public Criteria andUnitPhoneNumGreaterThanOrEqualTo(String value) {
            addCriterion("unit_phone_num >=", value, "unitPhoneNum");
            return (Criteria) this;
        }

        public Criteria andUnitPhoneNumLessThan(String value) {
            addCriterion("unit_phone_num <", value, "unitPhoneNum");
            return (Criteria) this;
        }

        public Criteria andUnitPhoneNumLessThanOrEqualTo(String value) {
            addCriterion("unit_phone_num <=", value, "unitPhoneNum");
            return (Criteria) this;
        }

        public Criteria andUnitPhoneNumLike(String value) {
            addCriterion("unit_phone_num like", value, "unitPhoneNum");
            return (Criteria) this;
        }

        public Criteria andUnitPhoneNumNotLike(String value) {
            addCriterion("unit_phone_num not like", value, "unitPhoneNum");
            return (Criteria) this;
        }

        public Criteria andUnitPhoneNumIn(List<String> values) {
            addCriterion("unit_phone_num in", values, "unitPhoneNum");
            return (Criteria) this;
        }

        public Criteria andUnitPhoneNumNotIn(List<String> values) {
            addCriterion("unit_phone_num not in", values, "unitPhoneNum");
            return (Criteria) this;
        }

        public Criteria andUnitPhoneNumBetween(String value1, String value2) {
            addCriterion("unit_phone_num between", value1, value2, "unitPhoneNum");
            return (Criteria) this;
        }

        public Criteria andUnitPhoneNumNotBetween(String value1, String value2) {
            addCriterion("unit_phone_num not between", value1, value2, "unitPhoneNum");
            return (Criteria) this;
        }

        public Criteria andPostalCodeIsNull() {
            addCriterion("postal_code is null");
            return (Criteria) this;
        }

        public Criteria andPostalCodeIsNotNull() {
            addCriterion("postal_code is not null");
            return (Criteria) this;
        }

        public Criteria andPostalCodeEqualTo(String value) {
            addCriterion("postal_code =", value, "postalCode");
            return (Criteria) this;
        }

        public Criteria andPostalCodeNotEqualTo(String value) {
            addCriterion("postal_code <>", value, "postalCode");
            return (Criteria) this;
        }

        public Criteria andPostalCodeGreaterThan(String value) {
            addCriterion("postal_code >", value, "postalCode");
            return (Criteria) this;
        }

        public Criteria andPostalCodeGreaterThanOrEqualTo(String value) {
            addCriterion("postal_code >=", value, "postalCode");
            return (Criteria) this;
        }

        public Criteria andPostalCodeLessThan(String value) {
            addCriterion("postal_code <", value, "postalCode");
            return (Criteria) this;
        }

        public Criteria andPostalCodeLessThanOrEqualTo(String value) {
            addCriterion("postal_code <=", value, "postalCode");
            return (Criteria) this;
        }

        public Criteria andPostalCodeLike(String value) {
            addCriterion("postal_code like", value, "postalCode");
            return (Criteria) this;
        }

        public Criteria andPostalCodeNotLike(String value) {
            addCriterion("postal_code not like", value, "postalCode");
            return (Criteria) this;
        }

        public Criteria andPostalCodeIn(List<String> values) {
            addCriterion("postal_code in", values, "postalCode");
            return (Criteria) this;
        }

        public Criteria andPostalCodeNotIn(List<String> values) {
            addCriterion("postal_code not in", values, "postalCode");
            return (Criteria) this;
        }

        public Criteria andPostalCodeBetween(String value1, String value2) {
            addCriterion("postal_code between", value1, value2, "postalCode");
            return (Criteria) this;
        }

        public Criteria andPostalCodeNotBetween(String value1, String value2) {
            addCriterion("postal_code not between", value1, value2, "postalCode");
            return (Criteria) this;
        }

        public Criteria andUnitFaxNumIsNull() {
            addCriterion("unit_fax_num is null");
            return (Criteria) this;
        }

        public Criteria andUnitFaxNumIsNotNull() {
            addCriterion("unit_fax_num is not null");
            return (Criteria) this;
        }

        public Criteria andUnitFaxNumEqualTo(String value) {
            addCriterion("unit_fax_num =", value, "unitFaxNum");
            return (Criteria) this;
        }

        public Criteria andUnitFaxNumNotEqualTo(String value) {
            addCriterion("unit_fax_num <>", value, "unitFaxNum");
            return (Criteria) this;
        }

        public Criteria andUnitFaxNumGreaterThan(String value) {
            addCriterion("unit_fax_num >", value, "unitFaxNum");
            return (Criteria) this;
        }

        public Criteria andUnitFaxNumGreaterThanOrEqualTo(String value) {
            addCriterion("unit_fax_num >=", value, "unitFaxNum");
            return (Criteria) this;
        }

        public Criteria andUnitFaxNumLessThan(String value) {
            addCriterion("unit_fax_num <", value, "unitFaxNum");
            return (Criteria) this;
        }

        public Criteria andUnitFaxNumLessThanOrEqualTo(String value) {
            addCriterion("unit_fax_num <=", value, "unitFaxNum");
            return (Criteria) this;
        }

        public Criteria andUnitFaxNumLike(String value) {
            addCriterion("unit_fax_num like", value, "unitFaxNum");
            return (Criteria) this;
        }

        public Criteria andUnitFaxNumNotLike(String value) {
            addCriterion("unit_fax_num not like", value, "unitFaxNum");
            return (Criteria) this;
        }

        public Criteria andUnitFaxNumIn(List<String> values) {
            addCriterion("unit_fax_num in", values, "unitFaxNum");
            return (Criteria) this;
        }

        public Criteria andUnitFaxNumNotIn(List<String> values) {
            addCriterion("unit_fax_num not in", values, "unitFaxNum");
            return (Criteria) this;
        }

        public Criteria andUnitFaxNumBetween(String value1, String value2) {
            addCriterion("unit_fax_num between", value1, value2, "unitFaxNum");
            return (Criteria) this;
        }

        public Criteria andUnitFaxNumNotBetween(String value1, String value2) {
            addCriterion("unit_fax_num not between", value1, value2, "unitFaxNum");
            return (Criteria) this;
        }

        public Criteria andUnitManagerIsNull() {
            addCriterion("unit_manager is null");
            return (Criteria) this;
        }

        public Criteria andUnitManagerIsNotNull() {
            addCriterion("unit_manager is not null");
            return (Criteria) this;
        }

        public Criteria andUnitManagerEqualTo(String value) {
            addCriterion("unit_manager =", value, "unitManager");
            return (Criteria) this;
        }

        public Criteria andUnitManagerNotEqualTo(String value) {
            addCriterion("unit_manager <>", value, "unitManager");
            return (Criteria) this;
        }

        public Criteria andUnitManagerGreaterThan(String value) {
            addCriterion("unit_manager >", value, "unitManager");
            return (Criteria) this;
        }

        public Criteria andUnitManagerGreaterThanOrEqualTo(String value) {
            addCriterion("unit_manager >=", value, "unitManager");
            return (Criteria) this;
        }

        public Criteria andUnitManagerLessThan(String value) {
            addCriterion("unit_manager <", value, "unitManager");
            return (Criteria) this;
        }

        public Criteria andUnitManagerLessThanOrEqualTo(String value) {
            addCriterion("unit_manager <=", value, "unitManager");
            return (Criteria) this;
        }

        public Criteria andUnitManagerLike(String value) {
            addCriterion("unit_manager like", value, "unitManager");
            return (Criteria) this;
        }

        public Criteria andUnitManagerNotLike(String value) {
            addCriterion("unit_manager not like", value, "unitManager");
            return (Criteria) this;
        }

        public Criteria andUnitManagerIn(List<String> values) {
            addCriterion("unit_manager in", values, "unitManager");
            return (Criteria) this;
        }

        public Criteria andUnitManagerNotIn(List<String> values) {
            addCriterion("unit_manager not in", values, "unitManager");
            return (Criteria) this;
        }

        public Criteria andUnitManagerBetween(String value1, String value2) {
            addCriterion("unit_manager between", value1, value2, "unitManager");
            return (Criteria) this;
        }

        public Criteria andUnitManagerNotBetween(String value1, String value2) {
            addCriterion("unit_manager not between", value1, value2, "unitManager");
            return (Criteria) this;
        }

        public Criteria andUnitAddrIsNull() {
            addCriterion("unit_addr is null");
            return (Criteria) this;
        }

        public Criteria andUnitAddrIsNotNull() {
            addCriterion("unit_addr is not null");
            return (Criteria) this;
        }

        public Criteria andUnitAddrEqualTo(String value) {
            addCriterion("unit_addr =", value, "unitAddr");
            return (Criteria) this;
        }

        public Criteria andUnitAddrNotEqualTo(String value) {
            addCriterion("unit_addr <>", value, "unitAddr");
            return (Criteria) this;
        }

        public Criteria andUnitAddrGreaterThan(String value) {
            addCriterion("unit_addr >", value, "unitAddr");
            return (Criteria) this;
        }

        public Criteria andUnitAddrGreaterThanOrEqualTo(String value) {
            addCriterion("unit_addr >=", value, "unitAddr");
            return (Criteria) this;
        }

        public Criteria andUnitAddrLessThan(String value) {
            addCriterion("unit_addr <", value, "unitAddr");
            return (Criteria) this;
        }

        public Criteria andUnitAddrLessThanOrEqualTo(String value) {
            addCriterion("unit_addr <=", value, "unitAddr");
            return (Criteria) this;
        }

        public Criteria andUnitAddrLike(String value) {
            addCriterion("unit_addr like", value, "unitAddr");
            return (Criteria) this;
        }

        public Criteria andUnitAddrNotLike(String value) {
            addCriterion("unit_addr not like", value, "unitAddr");
            return (Criteria) this;
        }

        public Criteria andUnitAddrIn(List<String> values) {
            addCriterion("unit_addr in", values, "unitAddr");
            return (Criteria) this;
        }

        public Criteria andUnitAddrNotIn(List<String> values) {
            addCriterion("unit_addr not in", values, "unitAddr");
            return (Criteria) this;
        }

        public Criteria andUnitAddrBetween(String value1, String value2) {
            addCriterion("unit_addr between", value1, value2, "unitAddr");
            return (Criteria) this;
        }

        public Criteria andUnitAddrNotBetween(String value1, String value2) {
            addCriterion("unit_addr not between", value1, value2, "unitAddr");
            return (Criteria) this;
        }

        public Criteria andUnitDescIsNull() {
            addCriterion("unit_desc is null");
            return (Criteria) this;
        }

        public Criteria andUnitDescIsNotNull() {
            addCriterion("unit_desc is not null");
            return (Criteria) this;
        }

        public Criteria andUnitDescEqualTo(String value) {
            addCriterion("unit_desc =", value, "unitDesc");
            return (Criteria) this;
        }

        public Criteria andUnitDescNotEqualTo(String value) {
            addCriterion("unit_desc <>", value, "unitDesc");
            return (Criteria) this;
        }

        public Criteria andUnitDescGreaterThan(String value) {
            addCriterion("unit_desc >", value, "unitDesc");
            return (Criteria) this;
        }

        public Criteria andUnitDescGreaterThanOrEqualTo(String value) {
            addCriterion("unit_desc >=", value, "unitDesc");
            return (Criteria) this;
        }

        public Criteria andUnitDescLessThan(String value) {
            addCriterion("unit_desc <", value, "unitDesc");
            return (Criteria) this;
        }

        public Criteria andUnitDescLessThanOrEqualTo(String value) {
            addCriterion("unit_desc <=", value, "unitDesc");
            return (Criteria) this;
        }

        public Criteria andUnitDescLike(String value) {
            addCriterion("unit_desc like", value, "unitDesc");
            return (Criteria) this;
        }

        public Criteria andUnitDescNotLike(String value) {
            addCriterion("unit_desc not like", value, "unitDesc");
            return (Criteria) this;
        }

        public Criteria andUnitDescIn(List<String> values) {
            addCriterion("unit_desc in", values, "unitDesc");
            return (Criteria) this;
        }

        public Criteria andUnitDescNotIn(List<String> values) {
            addCriterion("unit_desc not in", values, "unitDesc");
            return (Criteria) this;
        }

        public Criteria andUnitDescBetween(String value1, String value2) {
            addCriterion("unit_desc between", value1, value2, "unitDesc");
            return (Criteria) this;
        }

        public Criteria andUnitDescNotBetween(String value1, String value2) {
            addCriterion("unit_desc not between", value1, value2, "unitDesc");
            return (Criteria) this;
        }

        public Criteria andUnitTypeIsNull() {
            addCriterion("unit_type is null");
            return (Criteria) this;
        }

        public Criteria andUnitTypeIsNotNull() {
            addCriterion("unit_type is not null");
            return (Criteria) this;
        }

        public Criteria andUnitTypeEqualTo(String value) {
            addCriterion("unit_type =", value, "unitType");
            return (Criteria) this;
        }

        public Criteria andUnitTypeNotEqualTo(String value) {
            addCriterion("unit_type <>", value, "unitType");
            return (Criteria) this;
        }

        public Criteria andUnitTypeGreaterThan(String value) {
            addCriterion("unit_type >", value, "unitType");
            return (Criteria) this;
        }

        public Criteria andUnitTypeGreaterThanOrEqualTo(String value) {
            addCriterion("unit_type >=", value, "unitType");
            return (Criteria) this;
        }

        public Criteria andUnitTypeLessThan(String value) {
            addCriterion("unit_type <", value, "unitType");
            return (Criteria) this;
        }

        public Criteria andUnitTypeLessThanOrEqualTo(String value) {
            addCriterion("unit_type <=", value, "unitType");
            return (Criteria) this;
        }

        public Criteria andUnitTypeLike(String value) {
            addCriterion("unit_type like", value, "unitType");
            return (Criteria) this;
        }

        public Criteria andUnitTypeNotLike(String value) {
            addCriterion("unit_type not like", value, "unitType");
            return (Criteria) this;
        }

        public Criteria andUnitTypeIn(List<String> values) {
            addCriterion("unit_type in", values, "unitType");
            return (Criteria) this;
        }

        public Criteria andUnitTypeNotIn(List<String> values) {
            addCriterion("unit_type not in", values, "unitType");
            return (Criteria) this;
        }

        public Criteria andUnitTypeBetween(String value1, String value2) {
            addCriterion("unit_type between", value1, value2, "unitType");
            return (Criteria) this;
        }

        public Criteria andUnitTypeNotBetween(String value1, String value2) {
            addCriterion("unit_type not between", value1, value2, "unitType");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNull() {
            addCriterion("remark is null");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNotNull() {
            addCriterion("remark is not null");
            return (Criteria) this;
        }

        public Criteria andRemarkEqualTo(String value) {
            addCriterion("remark =", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotEqualTo(String value) {
            addCriterion("remark <>", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThan(String value) {
            addCriterion("remark >", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("remark >=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThan(String value) {
            addCriterion("remark <", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThanOrEqualTo(String value) {
            addCriterion("remark <=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLike(String value) {
            addCriterion("remark like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotLike(String value) {
            addCriterion("remark not like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkIn(List<String> values) {
            addCriterion("remark in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotIn(List<String> values) {
            addCriterion("remark not in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkBetween(String value1, String value2) {
            addCriterion("remark between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotBetween(String value1, String value2) {
            addCriterion("remark not between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andOpenStatusIsNull() {
            addCriterion("open_status is null");
            return (Criteria) this;
        }

        public Criteria andOpenStatusIsNotNull() {
            addCriterion("open_status is not null");
            return (Criteria) this;
        }

        public Criteria andOpenStatusEqualTo(String value) {
            addCriterion("open_status =", value, "openStatus");
            return (Criteria) this;
        }

        public Criteria andOpenStatusNotEqualTo(String value) {
            addCriterion("open_status <>", value, "openStatus");
            return (Criteria) this;
        }

        public Criteria andOpenStatusGreaterThan(String value) {
            addCriterion("open_status >", value, "openStatus");
            return (Criteria) this;
        }

        public Criteria andOpenStatusGreaterThanOrEqualTo(String value) {
            addCriterion("open_status >=", value, "openStatus");
            return (Criteria) this;
        }

        public Criteria andOpenStatusLessThan(String value) {
            addCriterion("open_status <", value, "openStatus");
            return (Criteria) this;
        }

        public Criteria andOpenStatusLessThanOrEqualTo(String value) {
            addCriterion("open_status <=", value, "openStatus");
            return (Criteria) this;
        }

        public Criteria andOpenStatusLike(String value) {
            addCriterion("open_status like", value, "openStatus");
            return (Criteria) this;
        }

        public Criteria andOpenStatusNotLike(String value) {
            addCriterion("open_status not like", value, "openStatus");
            return (Criteria) this;
        }

        public Criteria andOpenStatusIn(List<String> values) {
            addCriterion("open_status in", values, "openStatus");
            return (Criteria) this;
        }

        public Criteria andOpenStatusNotIn(List<String> values) {
            addCriterion("open_status not in", values, "openStatus");
            return (Criteria) this;
        }

        public Criteria andOpenStatusBetween(String value1, String value2) {
            addCriterion("open_status between", value1, value2, "openStatus");
            return (Criteria) this;
        }

        public Criteria andOpenStatusNotBetween(String value1, String value2) {
            addCriterion("open_status not between", value1, value2, "openStatus");
            return (Criteria) this;
        }

        public Criteria andMergeToCodeIsNull() {
            addCriterion("merge_to_code is null");
            return (Criteria) this;
        }

        public Criteria andMergeToCodeIsNotNull() {
            addCriterion("merge_to_code is not null");
            return (Criteria) this;
        }

        public Criteria andMergeToCodeEqualTo(String value) {
            addCriterion("merge_to_code =", value, "mergeToCode");
            return (Criteria) this;
        }

        public Criteria andMergeToCodeNotEqualTo(String value) {
            addCriterion("merge_to_code <>", value, "mergeToCode");
            return (Criteria) this;
        }

        public Criteria andMergeToCodeGreaterThan(String value) {
            addCriterion("merge_to_code >", value, "mergeToCode");
            return (Criteria) this;
        }

        public Criteria andMergeToCodeGreaterThanOrEqualTo(String value) {
            addCriterion("merge_to_code >=", value, "mergeToCode");
            return (Criteria) this;
        }

        public Criteria andMergeToCodeLessThan(String value) {
            addCriterion("merge_to_code <", value, "mergeToCode");
            return (Criteria) this;
        }

        public Criteria andMergeToCodeLessThanOrEqualTo(String value) {
            addCriterion("merge_to_code <=", value, "mergeToCode");
            return (Criteria) this;
        }

        public Criteria andMergeToCodeLike(String value) {
            addCriterion("merge_to_code like", value, "mergeToCode");
            return (Criteria) this;
        }

        public Criteria andMergeToCodeNotLike(String value) {
            addCriterion("merge_to_code not like", value, "mergeToCode");
            return (Criteria) this;
        }

        public Criteria andMergeToCodeIn(List<String> values) {
            addCriterion("merge_to_code in", values, "mergeToCode");
            return (Criteria) this;
        }

        public Criteria andMergeToCodeNotIn(List<String> values) {
            addCriterion("merge_to_code not in", values, "mergeToCode");
            return (Criteria) this;
        }

        public Criteria andMergeToCodeBetween(String value1, String value2) {
            addCriterion("merge_to_code between", value1, value2, "mergeToCode");
            return (Criteria) this;
        }

        public Criteria andMergeToCodeNotBetween(String value1, String value2) {
            addCriterion("merge_to_code not between", value1, value2, "mergeToCode");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}